<template>
  <basic-container>
    <avue-crud
        v-bind="bindVal"
        v-on="onEvent"
        :page.sync="page"
        v-model="startForm"
        ref="avueCrud">
      <template v-for="(column,index) in columns" :slot="column.prop" slot-scope="{type,size,row}">
        <component :is="column.columnComponent" :row="row" :column="column" :rowKey="column.prop" :key="row.id+':'+index"></component>
      </template>
    </avue-crud>
  </basic-container>
</template>

<script>
import startCrud from "@/mixins/start-crud.js"

export default startCrud({
      components: {},
      watch: {
        'form.appUpdateType'(val) {
          let column = this.$refs.avueCrud.$refs.dialogForm.formOption.column;
          let item = this.findObject(column, 'minimumFullVersionCode');
          if (val === 1) {
            item.display = true;
            item.editDisplay=true;
          } else {
            item.display = false;
            item.editDisplay=false;
          }
        }
      },
      data() {
        return {};
      },
      created() {
      },
      methods: {}
    },
    {
      name: "app/appVersion"
    }
)
</script>

<style scoped>

</style>
